#!/bin/sh
#
# Startup script for the Common Console Framework
# This is intended to be run from inittab with a "once" entry.

export PATH=/opt/IBMJava/jre/bin:$PATH
#
export LD_LIBRARY_PATH=/opt/hsc/lib:$LD_LIBRARY_PATH
# The following two exports are required for tasklets-on-pHMC:
export JITC_COMPILEOPT=NINLINING{java/math/BigInteger}{oddModPow}
hscnls=`echo /usr/websm/codebase/pluginjars/hsc_*.jar | sed -e 's/ /:/g'`
export CLASSPATH=$CLASSPATH:/usr/websm/codebase/pluginjars/hmcdebug.jar:/usr/websm/codebase/pluginjars/hsc.jar:$hscnls:/usr/websm/codebase/wsm.jar:/usr/websm/codebase/pluginjars/rmcjava.jar:/usr/websm/codebase/pluginjars/aca.jar:/usr/websm/codebase/pluginjars/bundles.jar:/opt/ccfw/ccfw.jar:/usr/websm/codebase/pluginjars/sniacimom.jar
#
# Suppress listening on the JDI debugging port
#export HMC_DEBUG_OFF=1    Leave it in use; we need to debug
#
# Allow the CCFW Manager to connect to the CIM Server if started in SSL mode.
export HMC_JVM_EXTRA_OPTS="-Djavax.net.ssl.keyStore=/usr/websm/codebase/SM.pubkr -Djavax.net.ssl.keyStorePassword=defp -Dorg.snia.wbem.cimom.properties=/opt/hsc/data/cim.properties"
#
rm -f /opt/ccfw/TowersStarted > /dev/null 2>&1
/opt/ccfw/runccfw /opt/ccfw ccfw > /opt/ccfw/ccfw.out 2>&1 &

